From 46dc2f70368698446e108d45c79ad73abdf8b5ac Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Mon, 19 Jul 2004 07:56:20 +0000 Subject: [PATCH] 2004-07-19 KOBAYASHI Yasuhiro (tiny change) * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of ENCODE_SYSTEM for filenames. --- src/w32fns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/w32fns.c b/src/w32fns.c index d5ba6e9b078..0cb3abe91cd 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -7735,14 +7735,14 @@ specified. Ensure that file exists if MUSTMATCH is non-nil. */) /* Create the dialog with PROMPT as title, using DIR as initial directory and using "*" as pattern. */ dir = Fexpand_file_name (dir, Qnil); - strncpy (init_dir, SDATA (ENCODE_SYSTEM (dir)), MAX_PATH); + strncpy (init_dir, SDATA (ENCODE_FILE (dir)), MAX_PATH); init_dir[MAX_PATH] = '\0'; unixtodos_filename (init_dir); if (STRINGP (default_filename)) { char *file_name_only; - char *full_path_name = SDATA (ENCODE_SYSTEM (default_filename)); + char *full_path_name = SDATA (ENCODE_FILE (default_filename)); unixtodos_filename (full_path_name); -- 2.30.2